<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>XSSFCellAlignment (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="XSSFCellAlignment (POI API Documentation)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/XSSFCellAlignment.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>PREV CLASS</li>
<li><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellBorder.html" title="class in org.apache.poi.xssf.usermodel.extensions"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html" target="_top">FRAMES</a></li>
<li><a href="XSSFCellAlignment.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<p class="subTitle">org.apache.poi.xssf.usermodel.extensions</p>
<h2 title="Class XSSFCellAlignment" class="title">Class XSSFCellAlignment</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.poi.xssf.usermodel.extensions.XSSFCellAlignment</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <strong>XSSFCellAlignment</strong>
extends java.lang.Object</pre>
<div class="block">Cell settings available in the Format/Alignment tab</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment)">XSSFCellAlignment</a></strong>(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment&nbsp;cellAlignment)</code>
<div class="block">Creates a Cell Alignment from the supplied XML definition</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getCTCellAlignment()">getCTCellAlignment</a></strong>()</code>
<div class="block">Access to low-level data</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/ss/usermodel/HorizontalAlignment.html" title="enum in org.apache.poi.ss.usermodel">HorizontalAlignment</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getHorizontal()">getHorizontal</a></strong>()</code>
<div class="block">Get the type of horizontal alignment for the cell</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getIndent()">getIndent</a></strong>()</code>
<div class="block">Get the number of spaces to indent the text in the cell</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getShrinkToFit()">getShrinkToFit</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getTextRotation()">getTextRotation</a></strong>()</code>
<div class="block">Get the degree of rotation for the text in the cell
 <p/>
 Expressed in degrees.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/poi/ss/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.ss.usermodel">VerticalAlignment</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getVertical()">getVertical</a></strong>()</code>
<div class="block">Get the type of vertical alignment for the cell</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#getWrapText()">getWrapText</a></strong>()</code>
<div class="block">Whether the text should be wrapped</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#setHorizontal(org.apache.poi.ss.usermodel.HorizontalAlignment)">setHorizontal</a></strong>(<a href="../../../../../../org/apache/poi/ss/usermodel/HorizontalAlignment.html" title="enum in org.apache.poi.ss.usermodel">HorizontalAlignment</a>&nbsp;align)</code>
<div class="block">Set the type of horizontal alignment for the cell</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#setIndent(long)">setIndent</a></strong>(long&nbsp;indent)</code>
<div class="block">Set the number of spaces to indent the text in the cell</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#setShrinkToFit(boolean)">setShrinkToFit</a></strong>(boolean&nbsp;shrink)</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#setTextRotation(long)">setTextRotation</a></strong>(long&nbsp;rotation)</code>
<div class="block">Set the degree of rotation for the text in the cell
 <p/>
 Expressed in degrees.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#setVertical(org.apache.poi.ss.usermodel.VerticalAlignment)">setVertical</a></strong>(<a href="../../../../../../org/apache/poi/ss/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.ss.usermodel">VerticalAlignment</a>&nbsp;align)</code>
<div class="block">Set the type of vertical alignment for the cell</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html#setWrapText(boolean)">setWrapText</a></strong>(boolean&nbsp;wrapped)</code>
<div class="block">Set whether the text should be wrapped</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>XSSFCellAlignment</h4>
<pre>public&nbsp;XSSFCellAlignment(org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment&nbsp;cellAlignment)</pre>
<div class="block">Creates a Cell Alignment from the supplied XML definition</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>cellAlignment</code> - </dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getVertical()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVertical</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/poi/ss/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.ss.usermodel">VerticalAlignment</a>&nbsp;getVertical()</pre>
<div class="block">Get the type of vertical alignment for the cell</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the type of aligment</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../org/apache/poi/ss/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.ss.usermodel"><code>VerticalAlignment</code></a></dd></dl>
</li>
</ul>
<a name="setVertical(org.apache.poi.ss.usermodel.VerticalAlignment)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVertical</h4>
<pre>public&nbsp;void&nbsp;setVertical(<a href="../../../../../../org/apache/poi/ss/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.ss.usermodel">VerticalAlignment</a>&nbsp;align)</pre>
<div class="block">Set the type of vertical alignment for the cell</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>align</code> - - the type of alignment</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../org/apache/poi/ss/usermodel/VerticalAlignment.html" title="enum in org.apache.poi.ss.usermodel"><code>VerticalAlignment</code></a></dd></dl>
</li>
</ul>
<a name="getHorizontal()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHorizontal</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/poi/ss/usermodel/HorizontalAlignment.html" title="enum in org.apache.poi.ss.usermodel">HorizontalAlignment</a>&nbsp;getHorizontal()</pre>
<div class="block">Get the type of horizontal alignment for the cell</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the type of aligment</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../org/apache/poi/ss/usermodel/HorizontalAlignment.html" title="enum in org.apache.poi.ss.usermodel"><code>HorizontalAlignment</code></a></dd></dl>
</li>
</ul>
<a name="setHorizontal(org.apache.poi.ss.usermodel.HorizontalAlignment)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHorizontal</h4>
<pre>public&nbsp;void&nbsp;setHorizontal(<a href="../../../../../../org/apache/poi/ss/usermodel/HorizontalAlignment.html" title="enum in org.apache.poi.ss.usermodel">HorizontalAlignment</a>&nbsp;align)</pre>
<div class="block">Set the type of horizontal alignment for the cell</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>align</code> - - the type of alignment</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../../org/apache/poi/ss/usermodel/HorizontalAlignment.html" title="enum in org.apache.poi.ss.usermodel"><code>HorizontalAlignment</code></a></dd></dl>
</li>
</ul>
<a name="getIndent()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIndent</h4>
<pre>public&nbsp;long&nbsp;getIndent()</pre>
<div class="block">Get the number of spaces to indent the text in the cell</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>indent - number of spaces</dd></dl>
</li>
</ul>
<a name="setIndent(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIndent</h4>
<pre>public&nbsp;void&nbsp;setIndent(long&nbsp;indent)</pre>
<div class="block">Set the number of spaces to indent the text in the cell</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>indent</code> - - number of spaces</dd></dl>
</li>
</ul>
<a name="getTextRotation()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextRotation</h4>
<pre>public&nbsp;long&nbsp;getTextRotation()</pre>
<div class="block">Get the degree of rotation for the text in the cell
 <p/>
 Expressed in degrees. Values range from 0 to 180. The first letter of
 the text is considered the center-point of the arc.
 <br/>
 For 0 - 90, the value represents degrees above horizon. For 91-180 the degrees below the
 horizon is calculated as:
 <br/>
 <code>[degrees below horizon] = 90 - textRotation.</code>
 </p></div>
<dl><dt><span class="strong">Returns:</span></dt><dd>rotation degrees (between 0 and 180 degrees)</dd></dl>
</li>
</ul>
<a name="setTextRotation(long)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextRotation</h4>
<pre>public&nbsp;void&nbsp;setTextRotation(long&nbsp;rotation)</pre>
<div class="block">Set the degree of rotation for the text in the cell
 <p/>
 Expressed in degrees. Values range from 0 to 180. The first letter of
 the text is considered the center-point of the arc.
 <br/>
 For 0 - 90, the value represents degrees above horizon. For 91-180 the degrees below the
 horizon is calculated as:
 <br/>
 <code>[degrees below horizon] = 90 - textRotation.</code>
 </p></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>rotation</code> - - the rotation degrees (between 0 and 180 degrees)</dd></dl>
</li>
</ul>
<a name="getWrapText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWrapText</h4>
<pre>public&nbsp;boolean&nbsp;getWrapText()</pre>
<div class="block">Whether the text should be wrapped</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a boolean value indicating if the text in a cell should be line-wrapped within the cell.</dd></dl>
</li>
</ul>
<a name="setWrapText(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWrapText</h4>
<pre>public&nbsp;void&nbsp;setWrapText(boolean&nbsp;wrapped)</pre>
<div class="block">Set whether the text should be wrapped</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>wrapped</code> - a boolean value indicating if the text in a cell should be line-wrapped within the cell.</dd></dl>
</li>
</ul>
<a name="getShrinkToFit()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShrinkToFit</h4>
<pre>public&nbsp;boolean&nbsp;getShrinkToFit()</pre>
</li>
</ul>
<a name="setShrinkToFit(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShrinkToFit</h4>
<pre>public&nbsp;void&nbsp;setShrinkToFit(boolean&nbsp;shrink)</pre>
</li>
</ul>
<a name="getCTCellAlignment()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getCTCellAlignment</h4>
<pre><a href="../../../../../../org/apache/poi/util/Internal.html" title="annotation in org.apache.poi.util">@Internal</a>
public&nbsp;org.openxmlformats.schemas.spreadsheetml.x2006.main.CTCellAlignment&nbsp;getCTCellAlignment()</pre>
<div class="block">Access to low-level data</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/XSSFCellAlignment.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>PREV CLASS</li>
<li><a href="../../../../../../org/apache/poi/xssf/usermodel/extensions/XSSFCellBorder.html" title="class in org.apache.poi.xssf.usermodel.extensions"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/poi/xssf/usermodel/extensions/XSSFCellAlignment.html" target="_top">FRAMES</a></li>
<li><a href="XSSFCellAlignment.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li>FIELD&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
                <i>Copyright 2014 The Apache Software Foundation or
        its licensors, as applicable.</i>
            </small></p>
</body>
</html>
